package ex8_2;
import java.util.*;
public class SimpleThread implements Runnable{
	String name;
	SimpleThread(String name){
		this.name=name;
	}
   Random rand=new Random();
   @Override
   public void run() {
  for(int i=0;i<10;i++) {
   	System.out.println("run method!"+i+" "+name);
   	try {
   	Thread.sleep(rand.nextInt(1000));
   	}catch(Exception e) {
   		e.printStackTrace();
    }
    }
    System.out.println("Damn"+name);
    }	
	}

